package com.dbn.webmagic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dbn.webmagic.dao.ComnoticeDao;
import com.dbn.webmagic.entity.Comnotice;
import com.dbn.webmagic.service.ComnoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;


@Service("comnoticeService")
public class ComnoticeServiceImpl extends ServiceImpl<ComnoticeDao, Comnotice> implements ComnoticeService {

    @Autowired
    private ComnoticeDao comnoticeDao;

    @Override
    public List<Comnotice> selectbyparam(String name, String sel2, String per) {
        List<Comnotice> comnoticeList=comnoticeDao.selectbyparam(name,sel2,per);
        if(comnoticeList.size()==0){
            return null;
        }
        return comnoticeList;
    }
}